package com.ztjava.tieba.validator;

import com.jfinal.core.Controller;
import com.ztjava.core.Constant;
import com.ztjava.core.base.BaseValidator;

public class AddReplyValidator extends BaseValidator{

	@Override
	protected void validate(Controller c) {
		validateRequired("content_id", Constant.MESSAGE, "缺少帖子");
		validateRequired("reply", Constant.MESSAGE, "缺少回复内容");
		validateString("reply", 2,400, Constant.MESSAGE, "回复内容必须2-400个字符");
	}

}
